package zry.Achievement.Platform;

import lombok.Data;

import java.sql.Date;

@Data
public class Platform {
    private String a_id;
    private String p_name;
    private String p_dept;
    private Date p_time;
    private String p_contribution;
    private String p_supporting;

    public Platform() {
    }

    public Platform(String achievement_id, String platform_name, String platform_dept, Date platform_time, String contribution, String supporting) {
        this.a_id = achievement_id;
        this.p_name = platform_name;
        this.p_dept = platform_dept;
        this.p_time = platform_time;
        this.p_contribution = contribution;
        this.p_supporting = supporting;
    }

    @Override
    public String toString() {
        return "成果id：" + a_id +
                "\n平台名称：" + p_name +
                "\n平台服务单位：" + p_dept +
                "\n平台上线时间：" + p_time +
                "\n贡献度：" + p_contribution +
                "\n佐证材料：" + p_supporting;
    }
}
